package com.nes.springcloud.feign;

import com.nes.springcloud.service.ComputeClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by wdq on 17-6-1.
 */
@RestController
public class FeignController {

    @Autowired
    private ComputeClient computeClient;
    @RequestMapping(value = "/add", method = RequestMethod.GET)
    public String add() {
        return computeClient.getResult(10, 20);
    }
}
